import { request } from '@umijs/max';

export async function getBillAll(
    body?: API.UserInfoVO,
    options?: { [key: string]: any },
) {
    return request('/api/bill/getBillAll', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

export async function deleteBill(
    body?: API.UserInfoVO,
    options?: { [key: string]: any },
) {
    return request('/api/bill/deleteBill', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

export async function getTransactionConfigAll(
    params?: any,
    options?: any,
) {
    return request('/api/transactionConfig/getAll', {
        method: 'GET',
        headers: {
            'Content-Type': 'application/json',
        },
        params: {
            ...params,
        },
        ...(options || {}),
    });
}